package cn.wolfcode.luowowo.common.util;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;
import lombok.Setter;

import java.io.Serializable;

@Setter
@Getter
@AllArgsConstructor
@NoArgsConstructor
public class JSONResult implements Serializable{
    private boolean success = true;
    private String msg ;
    private Object result;//成功之后返回给前台的数据

    public void mark(String msg){
        this.success = false;
        this.msg = msg;
    }

}
